package top.boycharse.blog.bean.Response;

public class PageResponse<T> {

    /**
     * 当前索引位置
     */
    private int currentIndex;

    /**
     * 返回元素总数量
     */
    private int elementNumber;

    /**
     * 总页数
     */
    private int totalPage;

    /**
     * 数据
     */
    private T content;

    public PageResponse() {

    }

    public PageResponse(int currentIndex, int elementNumber, int totalPage, T content) {
        this.currentIndex = currentIndex;
        this.elementNumber = elementNumber;
        this.totalPage = totalPage;
        this.content = content;
    }

    public int getCurrentIndex() {
        return currentIndex;
    }

    public void setCurrentIndex(int currentIndex) {
        this.currentIndex = currentIndex;
    }

    public int getElementNumber() {
        return elementNumber;
    }

    public void setElementNumber(int elementNumber) {
        this.elementNumber = elementNumber;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }
}
